import { use } from "echarts/core";
import { CanvasRenderer } from "echarts/renderers";
import {
    PieChart,
    BarChart,
    LineChart
} from "echarts/charts";
import {
    TitleComponent,
    TooltipComponent,
    LegendComponent,
    GridComponent
} from "echarts/components";


use([
    CanvasRenderer,
    PieChart,
    BarChart,
    LineChart,
    TitleComponent,
    TooltipComponent,
    LegendComponent,
    GridComponent
]);

import VChart from "vue-echarts";
export default function useEcharts(app) {
    app.component("v-chart", VChart);
}
